package com.dpndeveloper.snippets.db;

import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.util.Properties;

/**
 * 
 * @author Domenico Pio Novelli
 * 
 */
class MyDriver implements Driver {

	private final Driver m_driver;

	public MyDriver(Driver driver) {
		m_driver = driver;
	}

	@Override
	public boolean acceptsURL(String url) throws SQLException {
		return m_driver.acceptsURL(url);
	}

	@Override
	public Connection connect(String url, Properties info) throws SQLException {
		return m_driver.connect(url, info);
	}

	@Override
	public int getMajorVersion() {
		return m_driver.getMajorVersion();
	}

	@Override
	public int getMinorVersion() {
		return m_driver.getMinorVersion();
	}

	@Override
	public DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
			throws SQLException {
		return m_driver.getPropertyInfo(url, info);
	}

	@Override
	public boolean jdbcCompliant() {
		return m_driver.jdbcCompliant();
	}

}
